export interface Entity {}

export interface Conditions {}

export type Page<T extends Entity> = {
  content: T[];
  totalElements: string;
  totalPages: number;
};

export interface Sort {
  direction: 'ASC' | 'DESC';
  properties: Array<string>;
}

export interface Pagination {
  pageNumber: number;
  pageSize: number;
}

export type Pageable = Pagination & Sort;

export interface Tree {
  id: string;
  parentId: string;
  name: string;
  weight: number;
}
